public class Test {
    public static void main(String[] args) {
        int i = 10;
        //手动装箱
        Integer ii = Integer.valueOf(i);
        //手动拆箱
        int j = ii.intValue();
        //自动装箱
        Integer ll = i;
        //自动拆箱
        int l = ll;
        System.out.println(i+" "+ll+" "+ii+" "+j);
        Integer i1 = 100;
        Integer i2 = 100;
        System.out.println(i1 == i2);
        Integer j1 = 200;
        Integer j2 = 200;
        System.out.println(j1);
        System.out.println(j2);
        System.out.println(j1 == j2);
        MyArray<String> myArray = new MyArray<>();
        myArray.setValue(0,"hello");
        myArray.setValue(1,"world");
        System.out.println(myArray.getValue(0)+","+myArray.getValue(1)+"!");
    }
}
class MyArray<T> {
    public Object[] array = new Object[10];
    public void setValue(int pos,T value) {
        array[pos] = value;
    }
    public T getValue(int pos) {
        return (T)array[pos];
    }
}
